package com.rest.response;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2020/2/11.
 */

public class ChatResponse {
    //发送信息类型 0 文本 1 图片 2 语音 6 处方
    public static final int TEXT = 0;
    public static final int IMAGE = 1;
    public static final int AUDIO = 2;
    public static final int PRESCRIPTION = 6;
    public static final int CHECKOUT = 7;
    //发送方 0 患者  1 医生
    public static final int DOCTOR = 1;
    public static final int PATIENT = 0;
    //发送状态 0 发送成功 1 发送中 2 发送失败
    public static final int SENDSUCCESS = 0;
    public static final int SENDING = 1;
    public static final int SENDFAIL = 2;


    public int pages;
    public int current;
    public List<Message> records = new ArrayList<>();

    public class Message {
        public int fromType;// 发送者类型  1 医生  0 患者
        public String messageId;
        public String content;
        public String sendTime;
        public Prescription2Response prescription;
        public CheckListData checkList;
        public String src;
        public int messageType = 0;// 0 text 1 image 2 语音 6 处方
        public int flag = 0;//  0 发送成功 1 发送中 2 发送失败
        public int time;
        public boolean isSpeaking;
    }
}
